#include "stdint.h"
#include "uart.h"
static void CLK_Init(void);
void main(void)
{
  CLK_Init();
  uart_init(115200);
  enableInterrupts();
  while (1)
  {
    ;
  }
}

static void CLK_Init(void)
{
  CLK_DeInit();
  CLK_HSECmd(ENABLE);
  while (SET != CLK_GetFlagStatus(CLK_FLAG_HSERDY))
    ;
  CLK_SYSCLKConfig(CLK_PRESCALER_CPUDIV1);
  CLK_ClockSwitchCmd(ENABLE);
  CLK_ClockSwitchConfig(CLK_SWITCHMODE_AUTO, CLK_SOURCE_HSE, DISABLE, CLK_CURRENTCLOCKSTATE_DISABLE);
}

#ifdef USE_FULL_ASSERT

/**
  * @brief  Reports the name of the source file and the source line number
  *   where the assert_param error has occurred.
  * @param file: pointer to the source file name
  * @param line: assert_param error line source number
  * @retval : None
  */
void assert_failed(u8 *file, u32 line)
{
  /* User can add his own implementation to report the file name and line number,
      ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */

  /* Infinite loop */
  while (1)
  {
  }
}
#endif

/******************* (C) COPYRIGHT 2009 STMicroelectronics *****END OF FILE****/
